package com.study;

public class People {
    public String name;
    public String sex;
    private int age;

    public People() {
    };

    public People(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return this.age;
    }

    public void method() {
        System.out.println("大家好，我叫" + this.name + "，我是" + this.sex + "的，今年" + this.age + "岁了！");
    }
}
